package qing.service;

import java.util.List;

import org.springframework.stereotype.Service;

import qing.entity.Tpl;

@Service
public class TplServiceImpl extends ServiceImpl<Tpl> implements TplService {

	
	@Override
	public List<Tpl> getddllist(int filetype) {
		String hql = "select p.id,p.title from Tpl p where p.filetype=?";
		List<Tpl> list = createQuery(hql).setParameter(0, filetype).list();
		return list;
	}

	
}               
